﻿using System;
using System.Linq;

namespace AgileDesign.Utilities
{
    public static class GenericExtensions
    {
        public static bool In<T>(this T item, params T[] items)
        {
            if (items == null)
            {
                throw new ArgumentNullException("items");
            }
            return items.Contains(item);
        }
    }
}
